FROM moxm/java:1.8-full


ARG JAR_FILE=./houxin-register/target/houxin-register.jar

COPY ${JAR_FILE} app.jar

EXPOSE 8848

ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -DMYSQL_PORT=8306 -DMYSQL_USER=houxin -DMYSQL_PWD=yO8xUIUUjiZejkEO -Djava.security.egd=file:/dev/./urandom"

CMD sleep 30; echo -e  "172.18.1.3    houxin-mysql\n172.18.1.2    houxin-redis\n172.18.1.8    houxin-register\n172.18.1.5    houxin-gateway\n172.18.1.6    houxin-auth\n172.18.1.7    houxin-adnmin"  >> /etc/hosts ;   java -jar app.jar $JAVA_OPTS ; cat /etc/hosts
